package pe.com.ztaxi.taxis.util;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class MapsJsonGoogle {
	
	private String[] destination_addresses;
	private String[] origin_addresses;
	private Row[] rows;
	
	public String[] getDestination_addresses() {
		return destination_addresses;
	}

	public void setDestination_addresses(String[] destination_addresses) {
		this.destination_addresses = destination_addresses;
	}

	public String[] getOrigin_addresses() {
		return origin_addresses;
	}

	public void setOrigin_addresses(String[] origin_addresses) {
		this.origin_addresses = origin_addresses;
	}

	public Row[] getRows() {
		return rows;
	}

	public void setRows(Row[] rows) {
		this.rows = rows;
	}

	@JsonIgnoreProperties(ignoreUnknown = true)
	public static class Row{
		private Element elements[];

		public Element[] getElements() {
			return elements;
		}

		public void setElements(Element[] elements) {
			this.elements = elements;
		}		
		
	}
	
	@JsonIgnoreProperties(ignoreUnknown = true)
	public static class Element {
		private Distance distance;
		private Duration duration;
		private String status;
		
		public Distance getDistance() {
			return distance;
		}
		public void setDistance(Distance distance) {
			this.distance = distance;
		}
		public Duration getDuration() {
			return duration;
		}
		public void setDuration(Duration duration) {
			this.duration = duration;
		}
		public String getStatus() {
			return status;
		}
		public void setStatus(String status) {
			this.status = status;
		}		
		
	}
	
	@JsonIgnoreProperties(ignoreUnknown = true)
	public static class Distance {
		private String text;
		private Integer value;
		
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		public Integer getValue() {
			return value;
		}
		public void setValue(Integer value) {
			this.value = value;
		}		
		
	}
	
	@JsonIgnoreProperties(ignoreUnknown = true)
	public static class Duration {
		private String text;
		private Integer value;
		
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		public Integer getValue() {
			return value;
		}
		public void setValue(Integer value) {
			this.value = value;
		}
				
	}
	
}
